#pragma once

#include <entt/entt.hpp>
#include "qlib/all.h"

namespace qbe::affix {

enum struct Code { Begin, Update, End };

struct Event {
  qlib::Cell::s_ptr cell = nullptr;
  entt::registry* reg = nullptr;

  Code code;

  qlib::Vec2d translate_a;  // 增量偏移
  qlib::Vec2d translate_b;  // 总共偏移
};

}  // namespace qbe::affix